<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<html>

<head>
<title>Spring MVC Starter Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/resources/css/screen.css"/>" />
</head>

<body>
	<div id="container">
		<div class="dualbrand">PrimeStone</div>
		<div id="content">
			<h1>Welcome to CIM Interface!</h1>

			<div>
				<h3>Pending Request Queue</h3>
				
				<p>Total number of requests queued:</p>
				<img alt="Total number of requests queued" src="${pieUrl}" />
				
				<br/><br/>
			</div>
			<div>
				<h3>Queue of Requests Processed:</h3>
				
				<p>Total number of records:</p>
				<img alt="Total number of records" src="${pieUrl}" />
				
				<p>Total number of records by ticket:</p>
				<img alt="Total number of records by ticket" src="${pieUrl}" />
				
				<p>Total number of blocks by ticket:</p>
				<img alt="Total number of blocks by ticket" src="${pieUrl}" />
				
				<p>Total number of records by day:</p>
				<img alt="Total number of records by day" src="${pieUrl}" />
				
				<p>Total number of records by day/hour:</p>
				<img alt="Total number of records by day/hour" src="${pieUrl}" />
				
				<br/><br/>
			</div>
			<div>
				<h3>Results of the Exchange:</h3>
				
				<p>Total number of records exchanged by device:</p>
				<img alt="Total number of records exchanged by device" src="${pieUrl}" />
				
				<p>Total number of records exchanged by socket:</p>
				<img alt="Total number of records exchanged by socket" src="${pieUrl}" />
				
				<p>Total number of records exchanged by day:</p>
				<img alt="Total number of records exchanged by day" src="${pieUrl}" />
				
				<p>Total number of records exchanged by day/hour:</p>
				<img alt="Total number of records exchanged by day/hour" src="${pieUrl}" />
				
				<p>Total number of memmory mass records exchanged by day:</p>
				<img alt="Total number of memmory mass records exchanged by day" src="${pieUrl}" />
				
				<p>Total number of register records exchanged by day:</p>
				<img alt="Total number of register records exchanged by day" src="${pieUrl}" />
				
				<p>Total number of event records exchanged by day:</p>
				<img alt="Total number of event records exchanged by day" src="${pieUrl}" />
				
				<br/><br/>
			</div>

			<%-- 
			<h2>Readings</h2>
			<c:choose>
				<c:when test="${readings.size()==0}">
					<em>No readings found.</em>
				</c:when>
				<c:otherwise>
					<table class="simpletablestyle">
						<thead>
							<tr>
								<th>Id</th>
								<th>Ticket</th>
								<th>Username</th>
								<th>Json Result Date</th>
								<th>REST URL</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${readings}" var="member">
								<tr>
									<td>${member.id}</td>
									<td>${member.ticket}</td>
									<td>${member.username}</td>
									<td>${member.jsonResultDate}</td>
									<td><a href="<c:url value="/rest/members/${member.id}"/>">/rest/members/${member.id}</a></td>
							</c:forEach>
						</tbody>
					</table>
					<table class="simpletablestyle">
						<tr>
							<td>REST URL for all members: <a
								href="<c:url value="/rest/members"/>">/rest/members</a>
							</td>
						</tr>
					</table>
				</c:otherwise>
			</c:choose>
			--%>
			
		</div>

		<div id="footer">
			<p>
				This project was generated from a Maven archetype from JBoss.<br />
			</p>
		</div>
	</div>
</body>
</html>
